A theory of higher-order subtyping with type intervals

نویسندگان

چکیده

The calculus of Dependent Object Types (DOT) has enabled a more principled and robust implementation Scala, but its support for type-level computation proven insufficient. As remedy, we propose $F^\omega_{..}$, rigorous theoretical foundation Scala's higher-kinded types. $F^\omega_{..}$ extends $F^\omega_{<:}$ with interval kinds, which afford unified treatment important type- kind-level abstraction mechanisms found in such as bounded quantification, operator abstractions, translucent type definitions first-class subtyping constraints. result is flexible general theory higher-order subtyping. We prove kind safety well weak normalization types undecidability All our proofs are mechanized Agda using fully syntactic approach based on hereditary substitution.

برای دانلود باید عضویت طلایی داشته باشید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Decidable Higher Order Subtyping

This paper establishes the decidability of typechecking in Fω ∧ , a typed lambda calculus combining higher-order polymorphism, subtyping, and intersection types. It contains the first proof of decidability of subtyping for a higher-order system.

متن کامل

Type Inference and Subtyping for Higher-Order Generative Communication

Models for generative communication use a common space, where concurrent agents put or retrieve data; data extraction is controlled by various kinds of filtering techniques, usually based on the structure of the data itself. However, for higher-order communication, i.e. when the data consists of software fragments, such techniques are not appropriate: structural information does not reflect the...

متن کامل

Anti-symmetry of higher-order subtyping and equality by subtyping

This paper gives the first proof that the subtyping relation of a higherorder lambda calculus, F ≤, is anti-symmetric, establishing in the process that the subtyping relation is a partial order—reflexive, transitive, and anti-symmetric up to β-equality. While a subtyping relation is reflexive and transitive by definition, anti-symmetry is a derived property. The result, which may seem obvious t...

متن کامل

Syntactic Metatheory of Higher-Order Subtyping

We present a new proof of decidability of higher-order subtyping in the presence of bounded quantification. The algorithm is formulated as a judgement which operates on beta-eta-normal forms. Transitivity and closure under application are proven directly and syntactically, without the need for a model construction or reasoning on longest beta-reduction sequences. The main technical tool is here...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Proceedings of the ACM on programming languages

سال: 2021

ISSN: ['2475-1421']

DOI: https://doi.org/10.1145/3473574